﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;

namespace DCT.Huiteng.Test.WebApp
{
    /// <summary>
    /// Summary description for Handler1
    /// </summary>
    public class Handler1 : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
           // context.Response.ContentType = "text/plain";
            var res = context.Response;
            string path = context.Server.MapPath("~/datagrid_data.json");
            res.Write(File.ReadAllText(path));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}